import request from '@/utils/request'

// 用户列表
export function getUserList(params: any) {
    return request.get({ url: '/user/list', params })
}

// 用户详情
export function getUserDetail(params: any) {
    return request.get({ url: '/user/detail', params })
}

// 用户编辑
export function userEdit(params: any) {
    return request.post({ url: '/user/edit', params })
}

export function allDevice(params: any) {
    return request.get({ url: '/device/allDevice', params })
}

// 设备消息记录列表
export function deviceMessageLists(params?: Record<string, any>) {
    return request.get({ url: '/device_message/list', params })
}

export function deviceMessageLists2(params?: Record<string, any>) {
    return request.get({ url: '/device_message/listMessage', params })
}

export function deviceMessageDetail(params: Record<string, any>) {
    return request.get({ url: '/device_message/detail', params })
}

export function startTestInfo() {
    return request.get({ url: '/device_message/startTestInfo' })
}

export function updateControlType(params: any) {
    return request.post({ url: '/device_message/updateControlType', params })
}

export function deviceMessageStartTest(params: any) {
    return request.post({ url: '/device_message/startTest', params })
}
